//路由守卫不要动

import { Navigate } from "react-router";
import {} from 'react'

let App=({children})=>{
    let token=sessionStorage.getItem('use')
    
    if(token){
        return <>{children}</>
    }else{
        return <Navigate to='/login' />
    }
}

export default App